import Layout from '@/layout/index.vue'

const commentRouter = {
    path: '/comment',
    name: 'Comment',
    component: Layout,
    redirect: to => {
      return { path: '/evaluationManage'}
    },
    meta: {
      hide: true,
      title: '评价管理',
      icon: 'icon-pingjia',
      addToSidebar: true,
      roles: ['admin']
    },
    children: [
      {
        path: '/evaluationManage',
        name: 'EvaluationManage',
        component: () => import('@/views/comment/evaluationManage.vue'),
        meta: { title: '评价管理', roles: ['admin'] }
      },
    ]
}

export default commentRouter